<?php

namespace app\common\customer\model;

use app\common\system\logic\UserLogic;
use think\Model;

class CustomerCombineLog extends Model {
    protected $table = 'tk_member_combine_log';

    protected $type = [
        'from_data' => 'json',
    ];

    public function getUserAttr($value, $data) {
        $userLogic = new UserLogic();
        return $userLogic->getUser($data['user_id'], ['id', 'realname']);
    }
}